package com.asm.entity.sys;

import com.asm.entity.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author ZhuangGuiMan
 */
@Slf4j
@Data
@Accessors(chain = true)
@Entity
@Table(name = "t_spot")
public class Spot extends BaseEntity {

    /**
     * 广告位类型
     */
    @Column(name = "spot_type", length = 10)
    private String spotType;

    /**
     * 广告位规格
     */
    @Column(name = "spot_size", length = 50)
    private String spotSize;

    /**
     * 广告位对应的社区编号
     */
    @Column(name = "community_id")
    private Long communityId;

    /**
     * 广告位对应的图片链接地址
     */
    @Column(name = "image_src", length = 200)
    private String imageSrc;

    /**
     * 广告位是否空闲
     */
    @Column(name = "is_busy")
    private Boolean isBusy;

    /**
     * 广告位是否正在维修
     */
    @Column(name = "is_repair")
    private Boolean isRepair;
}
